Distributed virtual machine image management for cloud computing

ABSTRACT

Embodiments of the present invention and provide a method for distributed virtual machine (VM) image management in a cloud computing management includes receiving in a hypervisor executing in memory of a host computer, a request for VM image data from a VM and determining whether or not the requested VM image data is present in a local cache of either the hypervisor of the host computer or in a cache of a hypervisor of a peer host. The method additionally includes retrieving the requested VM image data from a seed image in a remote data store in the cloud computing environment only when it is determined that the VM image data neither is present in the local cache of the hypervisor of the host computer nor is present in the cache of the hypervisor of the peer host.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application claims priority to U.S. patent application Ser. No. 13/941,043, currently pending, filed Jul. 12, 2013, the entirety of which are incorporated herein by reference.

BACKGROUND OF THE INVENTION

1. Field of the Invention

The present invention relates to the field of virtualization and more particularly to virtual machine (VM) image retrieval in a virtualized computing environment

2. Description of the Related Art

For many decades, computing implied both an application and a supporting platform. Until the late twentieth century, a host computing environment included a hardware infrastructure of processor core, input/output, memory and fixed storage, the combination of which supported an operating system, which in turn supported the execution of a single application at a time. Gradually, as processor power increased exponentially, advanced forms of the operating system enabled both simulated and actual multi-tasking such that multiple applications could execute within the same host computing environment.

Initially, applications were self contained bundles of logic relying on little other than core object files and related resource files. As computing become integral to modern industry, however, applications became co-dependent on the presence of other applications such that the requisite environment for an application included not only the underlying operating system and supporting hardware platform, but also other key applications including application servers, database management servers, collaboration servers and communicative logic commonly referred to as middleware. Given the complexity of application and platform interoperability, however, different combinations of applications executing in a single hardware platform can demonstrate differing degrees of performance and stability.

Virtualization as a technology aims to interject a layer between the hardware platform and operating system and executing applications. From the perspective of business continuity and disaster recovery, virtualization provides the inherent advantage of environment portability. Specifically, to move an entire environment configured with multiple different applications is a matter of moving a virtual machine (VM) image from one supporting hardware platform to another. Further, more powerful computing environments can support the coexistence of multiple different VM images, all the while maintaining a virtual separation between the VM images. Consequently, a failure condition in one VM image cannot jeopardize the integrity of other co-executing VM images in the same hardware platform.

A VM monitor, known in the art as a “hypervisor”, manages the interaction between each VM image and the underlying resources provided by the hardware platform. In this regard, a bare metal hypervisor runs directly on the hardware platform much as an operating system runs directly on hardware. By comparison, a hosted hypervisor runs within a host operating system. In either case, the hypervisor can support the operation of different VM images—the number of VM images being limited only by the processing resources of a VM container holding the VM images or the hardware platform itself.

Of note, virtualization has been extended to the cloud computing environment. Cloud computing refers to Internet-based computing, whereby shared resources, software, and information are provided to computers and other devices on demand. Cloud computing typically involves over the-Internet-provision of dynamically scalable and often virtualized resources and is a byproduct and consequence of the ease-of-access to remote computing sites provided by the Internet. Of note, within the cloud computing environment, the creation of large numbers of VM instances often requires the repeated copying of a substantial volume of data from a single data source in the “cloud”. Consequently, a potential bottleneck can result in terms of how quickly the single data source can serve the data. Further, the creation of large numbers of VM images in a single data source can provide for an adverse impact upon a single network segment through which data must flow from the single data source. Finally, the creation of large numbers of VM images in a single data source potentially represents a single point of failure resulting from disk failure, network failure or other such resource failure.

BRIEF SUMMARY OF THE INVENTION

Embodiments of the present invention address deficiencies of the art in respect to VM image management in the cloud computing environment and provide a novel and non-obvious method, system and computer program product for distributed VM image management in a cloud computing management. In an embodiment of the invention, a method of distributed VM image management in a cloud computing environment includes receiving in a hypervisor executing in memory of a host computer, a request for VM image data from a VM and determining whether or not the requested VM image data is present in a local cache of either the hypervisor of the host computer or in a cache of a hypervisor of a peer host. The method additionally includes retrieving the requested VM image data from a seed image in a remote data store in the cloud computing environment only when it is determined that the VM image data neither is present in the local cache of the hypervisor of the host computer nor is present in the cache of the hypervisor of the peer host.

In one aspect of the embodiment, the VM image data is retrieved from the cache of the hypervisor of the peer host only when it is determined that the VM image data is not present in the local cache of the hypervisor of the host computer, but is present in the cache of the hypervisor of the peer host. Thereafter, the VM image data retrieved from the cache of the hypervisor of the peer host is cached in the local cache in response to a determination that the VM image data had been previously retrieved from the cache of the hypervisor of the peer host a threshold number of times. In another aspect of the embodiment, the VM image data retrieved form the seed image is cached in the local cache and a descriptor of content of the local cache is updated to indicate the caching of the VM image data in the local cache. In yet another aspect of the embodiment, it is determined whether or not the requested VM image data is present in a copy on write (COW) data store of the hypervisor of the host computer. As such, the requested VM image data is retrieved from the seed image in the remote data store in the cloud computing environment only when it is determined that the VM image data neither is present in the local cache of the hypervisor of the host computer nor is present in the cache of the hypervisor of the peer host nor is present in the COW data store.

In another embodiment of the invention, a virtualization data processing system is configured for distributed VM image management in a cloud computing environment. The system includes a host computer including memory and at least one processor and configured for communicative coupling to different peer hosts in a cloud computing environment. The system also includes a hypervisor executing in the memory of the host computer and managing different VMs. The system yet further includes a local cache of the hypervisor storing different portions of a VM image. Finally, the system includes a torrent-style client coupled to the hypervisor. The client includes program code enabled upon execution in the memory to respond to a request in the hypervisor for VM image data from one of the VMs by determining whether or not the requested VM image data is present in the local cache of either the hypervisor or in a cache of a hypervisor of any of the different peer hosts, and by retrieving the requested VM image data from a seed image in a remote data store in the cloud computing environment only when it is determined that the VM image data neither is present in the local cache of the hypervisor nor is present in the cache of the hypervisor of the any of the different peer hosts.

Additional aspects of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The aspects of the invention will be realized and attained by means of the elements and combinations particularly pointed out in the appended claims. It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention, as claimed.

BRIEF DESCRIPTION OF THE SEVERAL VIEWS OF THE DRAWINGS

The accompanying drawings, which are incorporated in and constitute part of this specification, illustrate embodiments of the invention and together with the description, serve to explain the principles of the invention. The embodiments illustrated herein are presently preferred, it being understood, however, that the invention is not limited to the precise arrangements and instrumentalities shown, wherein:

FIG. 1 is a pictorial illustration of a process for distributed VM image management in a cloud computing environment;

FIG. 2 is a schematic illustration of a virtualization data processing system configured for distributed VM image management in a cloud computing environment; and,

FIG. 3 is a flow chart illustrating a process for distributed VM image management in a cloud computing environment.

DETAILED DESCRIPTION OF THE INVENTION

Embodiments of the invention provide for distributed VM image management in a cloud computing environment. In accordance with an embodiment of the invention, a portion of a VM image can be retrieved by a hypervisor from a remotely disposed seed in a cloud computing environment. The retrieved VM image can be cached in a local cache memory of the hypervisor and the content of the local cache memory broadcast to proximate other hypervisors. Thereafter, upon request by one or more of the other hypervisors, the cached VM image can be transmitted to the one or more of the other hypervisors in lieu of the one or more of the hypervisors retrieving the cached VM image from the remotely disposed seed.

In further illustration, FIG. 1 pictorially shows a process for distributed VM image management in a cloud computing environment. As shown in FIG. 1, a seed image 120 of a VM can be disposed in a remote data source 110. A set of peer hosts 130 each can apply corresponding distributed VM image management logic 150 to respond to requests for data 160 from the VM image seed 120 by retrieving the requested data 160, if available, first in a local cache 140 for a corresponding hypervisor. If the logic 150 determines the data 160 to not be present in the local cache 140, a descriptor 170 for the content of peer ones of the cache 140 can be consulted to determine whether or not the data 160 can be retrieved from the peer ones of the cache 140. If not, the requested data 160 can be retrieved directly from the seed 120 in the remote data source 110. In this way, the data 160 can be distributed about the different peer hosts 130 in a cloud computing environment without suffering potential bottlenecks, without overburdening any single network segment and without becoming exposed to any single point of failure in a given one of the peer hosts 130.

The process described in connection with FIG. 1 can be implemented in a virtualization data processing system. In yet further illustration, FIG. 2 schematically shows a virtualization data processing system configured for distributed VM image management in a cloud computing environment. The system can include a host computing platform 210 including a data store 220 storing a seed image of a VM. The host computing platform 210 can be communicatively coupled to different peer hosts 240, each including at least one server with memory and at least one processor. Each of the peer hosts 240 can support the operation of a hypervisor 250 managing one or more VMs 230 and including a cache 280. Optionally, a COW data store can be provided for each of the hypervisors 250 in the memory of corresponding ones of the peer hosts 240.

Of note, a torrent style client 300 can be coupled to the hypervisor either directly, or by way of one or more of the VMs 230. The client 300 can include program code that when executed in the memory of a corresponding one of the peer hosts 240, can be enabled to respond to data requests from a particular one of the VMs 230 by determining first if the requested data is present in the cache 280 of the hosting hypervisor 250. The program code when executed further can be enabled to respond to a failure to locate the requested data in the cache 280 of the hosting hypervisor 250 by determining by way of a published descriptor whether or not a cache 280 of a hypervisor 250 of a peer one of the peer hosts 240 contains the requested data.

The program code when executed yet further can be enabled to respond to a failure to locate the requested data both in the cache 280 of the hosting hypervisor 250 and also in the cache 280 of a hypervisor 250 of the peer one of the peer hosts 240, by retrieving the requested data from the data store 220 storing the seed image. The program code when executed even yet further can be enabled upon retrieving the requested data from the data store 220 storing the seed, image to place the retrieved data into the cache 280 of the hosting hypervisor 250, to update a descriptor for the content of the cache 280, and to publish the updated descriptor to the peer hosts 240.

In even yet further illustration of the operation of the torrent style client 300, FIG. 3 is a flow chart illustrating a process for distributed VM image management in a cloud computing environment. Beginning in block 310, a request for one or more blocks of data of a VM image can be received in the hypervisor and in block 320, it can be determined whether or not the data is present in a COW data store for the hypervisor. In decision block 330, if the data is determined to be present in a COW data store of the hypervisor, in block 340 the hypervisor can return the data from the COW data store to the requesting VM and the process can repeat in block 310. Otherwise, the process can continue through block 350.

In block 350, it can be determined whether or not the data is present in a local cache for the hypervisor. In decision block 360, if the data is determined to be present in a local cache of the hypervisor, in block 340 the hypervisor can return the data from the local cache to the requesting VM and the process can repeat in block 310. Otherwise, the process can continue through block 370. In block 370, a descriptor for a local cache of a peer hypervisor can be inspected to determine whether or not the data is present in the local cache of the peer hypervisor. In decision block 380, if the data is determined to be present in the local cache of the peer hypervisor, in block 390 the data can be retrieved from the local cache of the peer hypervisor and returned to the requesting VM. Otherwise, the process can continue in block 410.

In block 410, with the data having been determined not to be present in the local cache of the peer hypervisor, the data can be retrieved from a seed image of the VM in a remote server. Thereafter, in block 390 the retrieved data can be returned to the requesting VM. In either circumstance, in block 400 the retrieved data can be cached contingent upon the data having been either retrieved a threshold number of times from the local cache of the peer hypervisor, or any number of times from the seed image of the VM in the remote server. Thereafter, the process can return to block 310.

As will be appreciated by one skilled in the art, aspects of the present invention may be embodied as a system, method or computer program product. Accordingly, aspects of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment (including firmware, resident software, micro-code, etc.) or an embodiment combining software and hardware aspects that may all generally be referred to herein as a “circuit,” “module” or “system.” Furthermore, aspects of the present invention may take the form of a computer program product embodied in one or more computer readable medium(s) having computer readable program code embodied thereon.

Any combination of one or more computer readable medium(s) may be utilized. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.

A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.

Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, radiofrequency, and the like, or any suitable combination of the foregoing. Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language and conventional procedural programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet Service Provider).

Aspects of the present invention have been described above with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. In this regard, the flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. For instance, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.

It also will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks.

These computer program instructions may also be stored in a computer readable medium that can direct a computer, other programmable data processing apparatus, or other devices to function in a particular manner, such that the instructions stored in the computer readable medium produce an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks. The computer program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide processes for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks.

Finally, the terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the singular forms “a”, “an” and “the” are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms “comprises” and/or “comprising,” when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.

The corresponding structures, materials, acts, and equivalents of all means or step plus function elements in the claims below are intended to include any structure, material, or act for performing the function in combination with other claimed elements as specifically claimed. The description of the present invention has been presented for purposes of illustration and description, but is not intended to be exhaustive or limited to the invention in the form disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the invention. The embodiment was chosen and described in order to best explain the principles of the invention and the practical application, and to enable others of ordinary skill in the art to understand the invention for various embodiments with various modifications as are suited to the particular use contemplated. 

Having thus described the invention of the present application in detail and by reference to embodiments thereof, it will be apparent that modifications and variations are possible without departing from the scope of the invention defined in the appended claims as follows: 1.-5. (canceled)
 6. A method of distributed virtual machine (VM) image management in a cloud computing environment, the method comprising: receiving in a hypervisor executing in a memory of a host computer, a request for VM image data for a portion of a VM image; determining whether the requested VM image data is present in a copy on write (COW) data store of the hypervisor of the host computer; upon determining that the requested VM image data is present in the COW data store of the hypervisor of the host computer, retrieving the requested VM image data from the COW data store of the hypervisor of the host computer; upon determining that the requested VM image data is not present in the COW data store of the hypervisor of the host computer, determining whether the requested VM image data is present in either a local cache of the hypervisor of the host computer or in a cache of a hypervisor of a peer host; and, retrieving the requested VM image data from a VM image seed in a remote data store in the cloud computing environment only upon determining that the VM image data neither is present in the local cache of the hypervisor of the host computer nor is present in the cache of the hypervisor of the peer host.
 7. The method of claim 6, further comprising: retrieving the VM image data from the cache of the hypervisor of the peer host only upon determining that the VM image data is not present in the local cache of the hypervisor of the host computer, but is present in the cache of the hypervisor of the peer host.
 8. The method of claim 6, further comprising: caching in the local cache of the hypervisor of the host computer the VM image data retrieved from the cache of the hypervisor of the peer host in response to a determination that the VM image data had been previously retrieved from the cache of the hypervisor of the peer host a threshold number of times.
 9. The method of claim 6, wherein determining whether the requested VM image data is present in the cache of the hypervisor of the peer host comprises checking a descriptor of content of the cache of the hypervisor of the peer host published by the hypervisor of the peer host.
 10. The method of claim 6, further comprising: caching in the local cache of the hypervisor of the host computer the VM image data retrieved from the VM image seed; and, updating a descriptor of content of the local cache of the hypervisor of the host computer to indicate the caching of the VM image data in the local cache of the hypervisor of the host computer.
 11. A virtualization data processing system configured for distributed virtual machine (VM) image management in a cloud computing environment, the system comprising: a host computer comprising memory and at least one processor and configured for communicative coupling to a plurality of different peer hosts in the cloud computing environment; a hypervisor executing in the memory of the host computer and managing a plurality of different VMs; a local cache of the hypervisor storing different portions of a VM image; and, a torrent-style client coupled to the hypervisor, the torrent-style client comprising program code enabled upon execution in the memory to respond to a request in the hypervisor for VM image data from one of the plurality of different VMs by determining whether the requested VM image data is present in a copy on write (COW) data store of the hypervisor of the host computer, to retrieve the requested VM image data from the COW data store of the hypervisor of the host computer upon determining that the requested VM image data is present in the COW data store of the hypervisor of the host computer, to determine whether the requested VM image data is present in either the local cache of the hypervisor of the host computer or in a cache of a hypervisor of any of the different peer hosts upon determining that the requested VM image data is not present in the COW data store of the hypervisor of the host computer, and to retrieve the requested VM image data from a VM image seed in a remote data store in the cloud computing environment only upon determining that the VM image data neither is present in the local cache of the hypervisor of the host computer nor is present in the cache of the hypervisor of any of the different peer hosts.
 12. The system of claim 11, wherein the program code is further enabled to retrieve the VM image data from the cache of the hypervisor of any of the different peer hosts only upon determining that the VM image data is not present in the local cache of the hypervisor of the host computer, but is present in the cache of a hypervisor of one of the different peer hosts.
 13. The system of claim 11, wherein the program code is further enabled to cache in the local cache of the hypervisor of the host computer the VM image data retrieved from the cache of the hypervisor of one of the different peer hosts in response to a determination that the VM image data had been previously retrieved from the cache of the hypervisor of any of the different peer hosts a threshold number of times.
 14. The system of claim 11, wherein the program code enabled to determine whether the requested VM image data is present in the cache of the hypervisor of any of the different peer hosts comprises program code enabled to check corresponding descriptors of content for respectively different ones of the caches of the hypervisor of the different peer hosts.
 15. The system of claim 11, wherein the program code is further enabled to cache in the local cache of the hypervisor of the host computer the VM image data retrieved from the VM image seed and to update a descriptor of content of the local cache of the hypervisor of the host computer to indicate the caching of the VM image data in the local cache.
 16. A computer program product for distributed virtual machine (VM) image management in a cloud computing environment, the computer program product comprising: a non-transitory computer readable storage medium having computer readable program code embodied therewith, the computer readable program code comprising: computer readable program code for receiving in a hypervisor executing in a memory of a host computer, a request for VM image data for a portion of a VM image; computer readable program code for determining whether the requested VM image data is present in a copy on write (COW) data store of the hypervisor of the host computer; computer readable program code for, upon determining that the requested VM image data is present in the COW data store of the hypervisor of the host computer, retrieving the requested VM image data from the COW data store of the hypervisor of the host computer; computer readable program code for, upon determining that the requested VM image data is not present in the COW data store of the hypervisor of the host computer, determining whether the requested VM image data is present in either a local cache of the hypervisor of the host computer or in a cache of a hypervisor of a peer host; and, computer readable program code for retrieving the requested VM image data from a VM image seed in a remote data store in the cloud computing environment only upon determining that the VM image data neither is present in the local cache of the hypervisor of the host computer nor is present in the cache of the hypervisor of the peer host.
 17. The computer program product of claim 16, further comprising: computer readable program code for retrieving the VM image data from the cache of the hypervisor of the peer host only upon determining that the VM image data is not present in the local cache of the hypervisor of the host computer, but is present in the cache of the hypervisor of the peer host.
 18. The computer program product of claim 16, further comprising: computer readable program code for caching in the local cache of the hypervisor of the host computer the VM image data retrieved from the cache of the hypervisor of the peer host in response to a determination that the VM image data had been previously retrieved from the cache of the hypervisor of the peer host a threshold number of times.
 19. The computer program product of claim 16, wherein the computer readable program code for determining whether the requested VM image data is present in the cache of the hypervisor of the peer host comprises computer readable program code for checking a descriptor of content of the cache of the hypervisor of the peer host published by the hypervisor of the peer host.
 20. The computer program product of claim 16, further comprising: computer readable program code for caching in the local cache of the hypervisor of the host computer the VM image data retrieved from the VM image seed; and, computer readable program code for updating a descriptor of content of the local cache of the hypervisor of the host computer to indicate the caching of the VM image data in the local cache of the hypervisor of the host computer. 